public class chuandi {
    public static void main(String[] args) {
        int[] nums = {1, 2, 3, 4, 5};
        System.out.println("调用change方法前："+nums[0]);
        change(nums);
        System.out.println("调用change方法后："+nums[0]);
    }
    public static void change(int[] nums) {
        nums[0] = 5;
    }
}
